package com.messe.base.models;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Area entity. @author MyEclipse Persistence Tools
 */

public class OrganizationContract implements java.io.Serializable {

	// Fields
	/**
	 * 
	 */
	private static final long serialVersionUID = -7224855846330888781L;
	private String id;
	private Organization organization;
	private Exhibition exhibition;
	private Organization organizer;
	private ContractTemplate contractTemplate;
	//合同
	private String contractId;
	//合同
	private String contractSLId;
	private Integer type;
	private Timestamp lastUpdatedStamp;
	private Timestamp createdStamp;
	/**合同名*/
	private String contractName;
	private String minBooth;
	private Integer statusId;
	private String squareFootage;
	private String boothType;
	private String area;
	/**代理商*/
	private String reseller;
	/**展位数*/
	private Integer boothNum;
	
	private String description;
	/**金额*/
	private Double money;
	/**折扣*/
	private String discount;
	/**折扣理由*/
	private String reason;
	/**展会/服务类型*/
	private Integer flag;
	private Set<OrganizationProductServiceRel> organizationProductServiceRels = new HashSet<OrganizationProductServiceRel>(0);
	
	public Set<OrganizationProductServiceRel> getOrganizationProductServiceRels() {
		return organizationProductServiceRels;
	}

	public void setOrganizationProductServiceRels(Set<OrganizationProductServiceRel> organizationProductServiceRels) {
		this.organizationProductServiceRels = organizationProductServiceRels;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getDiscount() {
		return discount;
	}

	public void setDiscount(String discount) {
		this.discount = discount;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getReseller() {
		return reseller;
	}

	public void setReseller(String reseller) {
		this.reseller = reseller;
	}

	private Set<Booth> booths=new HashSet<Booth>();
	// Constructors

	/** default constructor */
	public OrganizationContract() {
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	


	public Organization getOrganization() {
		return organization;
	}

	public void setOrganization(Organization organization) {
		this.organization = organization;
	}

	/**
	 * @return the exhibition
	 */
	public Exhibition getExhibition() {
		return exhibition;
	}

	/**
	 * @param exhibition the exhibition to set
	 */
	public void setExhibition(Exhibition exhibition) {
		this.exhibition = exhibition;
	}
	
	public Organization getOrganizer() {
		return organizer;
	}

	public void setOrganizer(Organization organizer) {
		this.organizer = organizer;
	}

	public ContractTemplate getContractTemplate() {
		return contractTemplate;
	}

	public void setContractTemplate(ContractTemplate contractTemplate) {
		this.contractTemplate = contractTemplate;
	}

	/**
	 * @return the contractId
	 */
	public String getContractId() {
		return contractId;
	}

	/**
	 * @param contractId the contractId to set
	 */
	public void setContractId(String contractId) {
		this.contractId = contractId;
	}

	/**
	 * @return the lastUpdatedStamp
	 */
	public Timestamp getLastUpdatedStamp() {
		return lastUpdatedStamp;
	}

	/**
	 * @param lastUpdatedStamp the lastUpdatedStamp to set
	 */
	public void setLastUpdatedStamp(Timestamp lastUpdatedStamp) {
		this.lastUpdatedStamp = lastUpdatedStamp;
	}

	/**
	 * @return the createdStamp
	 */
	public Timestamp getCreatedStamp() {
		return createdStamp;
	}

	/**
	 * @param createdStamp the createdStamp to set
	 */
	public void setCreatedStamp(Timestamp createdStamp) {
		this.createdStamp = createdStamp;
	}

	/**
	 * @return the booths
	 */
	public Set<Booth> getBooths() {
		return booths;
	}

	/**
	 * @param booths the booths to set
	 */
	public void setBooths(Set<Booth> booths) {
		this.booths = booths;
	}

	/**
	 * @return the contractSLId
	 */
	public String getContractSLId() {
		return contractSLId;
	}

	/**
	 * @param contractSLId the contractSLId to set
	 */
	public void setContractSLId(String contractSLId) {
		this.contractSLId = contractSLId;
	}

	/**
	 * @return the contractName
	 */
	public String getContractName() {
		return contractName;
	}

	/**
	 * @param contractName the contractName to set
	 */
	public void setContractName(String contractName) {
		this.contractName = contractName;
	}

	/**
	 * @return the minBooth
	 */
	public String getMinBooth() {
		return minBooth;
	}

	/**
	 * @param minBooth the minBooth to set
	 */
	public void setMinBooth(String minBooth) {
		this.minBooth = minBooth;
	}

	public Integer getStatusId() {
		return statusId;
	}

	public void setStatusId(Integer statusId) {
		this.statusId = statusId;
	}

	public String getSquareFootage() {
		return squareFootage;
	}

	public void setSquareFootage(String squareFootage) {
		this.squareFootage = squareFootage;
	}

	public String getBoothType() {
		return boothType;
	}

	public void setBoothType(String boothType) {
		this.boothType = boothType;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public Integer getBoothNum() {
		return null != boothNum ? boothNum : 0;
	}

	public void setBoothNum(Integer boothNum) {
		this.boothNum = boothNum;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}


	
}